<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<link href="/css/lay.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html,body{ width:100%; font-size:12px; line-height:18px;overflow:hidden}
.logo {background:url(../images/header_bg.jpg) repeat-x  }
</style>
</head>
<body>
<div id="header" style="height:78px;">
	<!--pag-->
	<div class="header_top" style="background: #9AC0CD;">
	<div class="logo" style="padding:4px 0;">
	   <span  style="height:43px;line-height: 43px;font-weight: bold;font-size: 22px;color: #FFFFFF;margin-left:30px;">
	   &nbsp;数据信息管理中心 </span>
	 <span style="float:right;margin:10px 20px;"> 欢迎您:<span style="color: #F2E6D0;font-weight:bold;">  ${session_user.userName}  ${session_user.roleInfo.roleName }!</span>
	  <a href="/system/login_out.shtml">退出</a></span>
	</div>
    </div>
    <!--nav-->
    <div class="header_nav" style="display:noned;">
    	<ul id="nav_ul">
    	    <c:forEach items="${list}" var="m" varStatus="idx">
    	       <li onclick="PageLoad.goAction(${idx.index});return false;">${m.menuName}</li>
    	    </c:forEach>
        </ul>
    </div>
</div>

<div id="main_back">
<!--左边菜单-->
<div id="leftmenu">
	<div class="title">
    <span>功能菜单</span>
    <div class="show"></div>
    </div>
  <div class="shou_top"></div>
  <div id="menupag">
            <c:forEach items="${list}" var="m">
	            <div class="menupag01" style="display:none;" id="menupag${m.id}">
	    	       <c:forEach items="${m.list}" var="sm" varStatus="stus">
	    	            <div class="menu01" style="cursor:pointer;"  id="background_hegh_${sm.id}" >
			            	<h2 onclick="PageLoad.playHrefList('menu01_title_${sm.id}');">${sm.menuName}</h2>
			                <div class="menu01_title" <c:if test="${!stus.first}">style="display:none;" </c:if> id="menu01_title_${sm.id}">
			                	<c:forEach items="${sm.list}" var="ssm"><a onclick="PageLoad.setCur(this);"  href="${ssm.menuHref }" target="mainFrame">${ssm.menuName}</a></c:forEach>
			                </div>
			            </div>
	    	       </c:forEach>
	    	    </div>
    	   </c:forEach>
    </div>
    <div class="shou_bottom"></div>
</div>


<!--页面主要部分-->
<div id="main" class="main" style="overflow:hidden; width:100%;top:85px;">
   	<iframe src="#" name="mainFrame" id="mainFrame" frameborder="0" width="100%" height="100%" scrolling="auto" allowTransparency="true"></iframe>
</div>
</div>
</body>
</html>
<script src="/scripts/util.js" type="text/javascript"></script>
<script src="/scripts/menu.js" type="text/javascript"></script>
<script src="/scripts/lay.js" type="text/javascript"></script>
<script type="text/javascript">


  var HOME = (function(){
     var callWindow,wbfs,mainFrame=frames["mainFrame"];
     return {
        parent_open:function(o){
            o.w&&(callWindow=o.w);
            o.wbfs&&(wbfs=o.wbfs);
            Lay.show({width:o.width,height:o.height,url:o.url,title:o.title});
        },
        hide:function(url){
          //wbfs.cb&&wbfs.cb(v);
          Lay.hide();
		 // alert(mainFrame);
		 //var mainFrame = document.getElementById("mainFrame");
		 
		 
		 mainFrame?mainFrame.location.reload():window.location.reload();
        }
     }
  })();
</script>
